package com.atlearn.boot_web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ViewController {
    @GetMapping("/zxb")
    public String test(Model model){
        model.addAttribute("msg","你好zxb");
        model.addAttribute("link","www.baidu.com");
     return "success";
    }
}
